﻿using System.Collections;
using System.Collections.Generic;
using ZGUIFW;
using UnityEngine;

namespace DemoProject
{
    public class SelectHeroUIForm : BaseUIForm
    {
        public void Awake()
        {
            CurrentType.UiFormShowMode = UIFormShowMode.HideOther;
            RigisterBtnEvent("BtnConfirm", go =>
            {
                OpenUIForm(ProConst.MAINCITY_FORM);
                OpenUIForm(ProConst.HEROINFO_FORM);
            });
            RigisterBtnEvent("BtnCancel", go =>
            {
                UIManager.GetInstance().CloseUIForms(ProConst.SELECTHERO_FORM);
            });
        }
	}
}

